package com.sinotopia.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by sinotopia@hangzhou on 2017/05/06.
 */
@Controller
public class HomeController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String index() {
        //JSP View
        return "index";

        //return "index.html";
    }

    // @RequestMapping(value = "/", method = RequestMethod.GET)
    // public String index(Model model) {
    //     model.addAttribute("recipient", "World");
    //     return "index.html";
    // }
}
